package com.yaolong.api.modules.opms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yaolong.commons.base2.BaseDomain;

import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 困难救助表
 * </p>
 *
 * @author yaolonga
 * @version v1.0.0
 * @since 2023-02-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("opms_distress_relief")
@ApiModel(value = "OpmsDistressRelief对象", description = "困难救助表")
public class OpmsDistressRelief extends BaseDomain {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "救助类型（失业、疾病、老龄、残疾）")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "申请状态（已通过、审核中、已驳回）")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "申请原因")
    @TableField("reason")
    private String reason;

    @ApiModelProperty(value = "申请材料")
    @TableField("file")
    private String file;

    @ApiModelProperty(value = "救助金额")
    @TableField("money")
    private String money;

    @ApiModelProperty(value = "救助级别")
    @TableField("level")
    private String level;

    @ApiModelProperty(value = "申请人")
    @TableField("applicant")
    private String applicant;

    @ApiModelProperty(value = "申请居民id")
    @TableField("applicant_id")
    private Long applicantId;

    @TableField(exist = false)
    private List<OpmsDistressAttach> files;

}
